//
//  AXMyMorbidityNameCell.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/11/12.
//  Copyright © 2018 tzhg. All rights reserved.
//
/** 病害名称 */
#import "AXMyMorbidityNameCell.h"

@implementation AXMyMorbidityNameCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self creatView];
        [self setlayout];
    }
    return self;
}

- (void)creatView {
    
    self.titleLabel = [[UILabel alloc]init];
    self.titleLabel.font = FONT_FOURTEEN;
    self.titleLabel.textColor = COLOR_Gray;
    [self.contentView addSubview:self.titleLabel];
    
    self.selectBtn = [[UIButton alloc]init];
    self.selectBtn.titleLabel.font = FONT_FOURTEEN;
    [self.selectBtn setTitleColor:COLOR_Gray forState:UIControlStateNormal];
    [self.contentView addSubview:self.selectBtn];
    
    
}

- (void)setlayout {
    
    self.titleLabel.sd_layout
    .leftSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView, 7)
    .widthIs((SCREEN_WIDTH-30)/2)
    .heightIs(30);
    
    self.selectBtn.sd_layout
    .rightSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView, 7)
    .widthIs((SCREEN_WIDTH-30)/2)
    .heightIs(30);
    
}

@end
